/*
 * @Author: zhangwei 1405298045@qq.com
 * @Date: 2022-03-04 11:41:48
 * @LastEditTime: 2022-04-02 10:32:23
 * @LastEditors: zhangwei 1405298045@qq.com
 * @Description:
 * @FilePath: /ll-fe-mp-dyfx/src/config/base.js
 *
 */

/**
 * 缓存数据加密key
 */
export const storageEncryptionKey = 'M_Uniapp_Storage';

/**
 * 终端Code
 */
export const terminalCode = 'LL-Talent';

/**
 * 微信订阅通知模板id
 */
export const WECHAT_TEMPLACTE_ID = 'J_BmvWifc-rqK3kyEyCOE6J8pHgwii1nk64MSp6HS2Y';

/**
 * 图片资源
 */
export const remoteStaticPath = {
	/* eslint-disable */
	// #ifndef H5
	development: 'https://dyfxmp-pre.lianlianlvyou.com/static/', // 开发
	// #endif

	// #ifdef H5
	development: '/lianlianCdn', // 开发
	// #endif
	/* eslint enable */

	grayscale: 'https://dyfxmp-pre.lianlianlvyou.com/static/', // 灰度

	production: 'https://oss.lianlianlvyou.com/mp-dyfx/static/' // 生产
};

/**
 * 请求接口域名
 */
export const HTTP_PREFIX = {
	/* eslint-disable */
	// #ifndef H5
	development: 'https://mp-dyfx-pre.lianlianlvyou.com/', // 开发 todo
	// #endif

	// #ifdef H5
	development: '/lianlianApi', // 开发
	// #endif
	/* eslint enable */

	grayscale: 'https://mp-dyfx-pre.lianlianlvyou.com/', // 灰度

	production: 'https://mp-dyfx.lianlianlvyou.com/' // 生产
};

/**
 * 文件传输（上传 || 下载地址）
 */
export const FILE_TRANSFER = {
	development: {
		HUAWEIYUN: {
			bucket: 'byte-pre',
			EndPoint: 'https://byte-pre.obs.cn-north-4.myhuaweicloud.com'
		},

		ALIYUN: {
			EndPoint: 'https://dyfxmp-pre.lianlianlvyou.com'
		}
	},

	grayscale: {
		HUAWEIYUN: {
			bucket: 'byte-pre',
			EndPoint: 'https://byte-pre.obs.cn-north-4.myhuaweicloud.com'
		},
		ALIYUN: {
			EndPoint: 'https://dyfxmp-pre.lianlianlvyou.com'
		}
	},

	production: {
		HUAWEIYUN: {
			bucket: 'byte-prod',
			EndPoint: 'https://byte-prod.obs.cn-north-4.myhuaweicloud.com'
		},

		ALIYUN: {
			EndPoint: 'https://ll-oss-prod.oss-cn-beijing.aliyuncs.com'
		}
	}
};

/**
 * 埋点地址
 */
export const BuriedPoint = {
	development: 'https://pre-dataapi.lianlianlvyou.com/post', // 开发

	grayscale: 'https://pre-dataapi.lianlianlvyou.com/post', // 灰度

	production: 'https://dataapi.lianlianlvyou.com/post' // 生产
};
